package simplefactory;

public class OperationDiv extends Operation {

    public double getResult() throws Exception {
        double result = 0;
        if (super.get_numberB() == 0)
            throw new Exception("除数不能为零！");
        result = super.get_numberA() / super.get_numberB();
        return result;
    }

}
